package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.PaymentOrderRecord;
import com.ecoolex.discount.sales.entity.PaymentOrderRecordExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PaymentOrderRecordMapper {
    long countByExample(PaymentOrderRecordExample example);

    int deleteByExample(PaymentOrderRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PaymentOrderRecord record);

    int insertSelective(@Param("record") PaymentOrderRecord record, @Param("selective") PaymentOrderRecord.Column ... selective);

    PaymentOrderRecord selectOneByExample(PaymentOrderRecordExample example);

    List<PaymentOrderRecord> selectByExample(PaymentOrderRecordExample example);

    PaymentOrderRecord selectByPrimaryKey(Integer id);

    PaymentOrderRecord selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PaymentOrderRecord record, @Param("example") PaymentOrderRecordExample example, @Param("selective") PaymentOrderRecord.Column ... selective);

    int updateByExample(@Param("record") PaymentOrderRecord record, @Param("example") PaymentOrderRecordExample example);

    int updateByPrimaryKeySelective(@Param("record") PaymentOrderRecord record, @Param("selective") PaymentOrderRecord.Column ... selective);

    int updateByPrimaryKey(PaymentOrderRecord record);

    int batchInsert(@Param("list") List<PaymentOrderRecord> list);

    int batchInsertSelective(@Param("list") List<PaymentOrderRecord> list, @Param("selective") PaymentOrderRecord.Column ... selective);

    int logicalDeleteByExample(@Param("example") PaymentOrderRecordExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}